Optimal. Leaf size=98 \[ \frac {2 (4 n+1) \tan (e+f x) \, _2F_1\left (\frac {1}{2},1-n;\frac {3}{2};1-\sec (e+f x)\right )}{f (2 n+1) \sqrt {\sec (e+f x)+1}}+\frac {2 \sin (e+f x) \sec ^{n+1}(e+f x)}{f (2 n+1) \sqrt {\sec (e+f x)+1}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.12, antiderivative size = 98, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.190, Rules used = {3814, 21, 3806, 65} \[ \frac {2 (4 n+1) \tan (e+f x) \, _2F_1\left (\frac {1}{2},1-n;\frac {3}{2};1-\sec (e+f x)\right )}{f (2 n+1) \sqrt {\sec (e+f x)+1}}+\frac {2 \sin (e+f x) \sec ^{n+1}(e+f x)}{f (2 n+1) \sqrt {\sec (e+f x)+1}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 65
Rule 3806
Rule 3814
Rubi steps
\begin {align*} \int \sec ^n(e+f x) (1+\sec (e+f x))^{3/2} \, dx &=\frac {2 \sec ^{1+n}(e+f x) \sin (e+f x)}{f (1+2 n) \sqrt {1+\sec (e+f x)}}+\frac {2 \int \frac {\sec ^n(e+f x) \left (\frac {1}{2}+2 n+\left (\frac {1}{2}+2 n\right ) \sec (e+f x)\right )}{\sqrt {1+\sec (e+f x)}} \, dx}{1+2 n}\\ &=\frac {2 \sec ^{1+n}(e+f x) \sin (e+f x)}{f (1+2 n) \sqrt {1+\sec (e+f x)}}+\frac {(1+4 n) \int \sec ^n(e+f x) \sqrt {1+\sec (e+f x)} \, dx}{1+2 n}\\ &=\frac {2 \sec ^{1+n}(e+f x) \sin (e+f x)}{f (1+2 n) \sqrt {1+\sec (e+f x)}}-\frac {((1+4 n) \tan (e+f x)) \operatorname {Subst}\left (\int \frac {x^{-1+n}}{\sqrt {1-x}} \, dx,x,\sec (e+f x)\right )}{f (1+2 n) \sqrt {1-\sec (e+f x)} \sqrt {1+\sec (e+f x)}}\\ &=\frac {2 \sec ^{1+n}(e+f x) \sin (e+f x)}{f (1+2 n) \sqrt {1+\sec (e+f x)}}+\frac {2 (1+4 n) \, _2F_1\left (\frac {1}{2},1-n;\frac {3}{2};1-\sec (e+f x)\right ) \tan (e+f x)}{f (1+2 n) \sqrt {1+\sec (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.46, size = 83, normalized size = 0.85 \[ \frac {\tan \left (\frac {1}{2} (e+f x)\right ) \sqrt {\sec (e+f x)+1} \sec ^n(e+f x) \left ((4 n+1) \cos ^{n+\frac {1}{2}}(e+f x) \, _2F_1\left (\frac {1}{2},n+\frac {3}{2};\frac {3}{2};2 \sin ^2\left (\frac {1}{2} (e+f x)\right )\right )-1\right )}{f n} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.67, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\sec \left (f x + e\right )^{n} {\left (\sec \left (f x + e\right ) + 1\right )}^{\frac {3}{2}}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sec \left (f x + e\right )^{n} {\left (\sec \left (f x + e\right ) + 1\right )}^{\frac {3}{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.99, size = 0, normalized size = 0.00 \[ \int \left (\sec ^{n}\left (f x +e \right )\right ) \left (1+\sec \left (f x +e \right )\right )^{\frac {3}{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sec \left (f x + e\right )^{n} {\left (\sec \left (f x + e\right ) + 1\right )}^{\frac {3}{2}}\,{d x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int {\left (\frac {1}{\cos \left (e+f\,x\right )}+1\right )}^{3/2}\,{\left (\frac {1}{\cos \left (e+f\,x\right )}\right )}^n \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (\sec {\left (e + f x \right )} + 1\right )^{\frac {3}{2}} \sec ^{n}{\left (e + f x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________